import 'package:flutter/cupertino.dart';

class ControlBean {
  String? title;
  List<ChildData>? childData;
  int? type; //0单选 1 多选
  int? editType; //2  3输入框位置 4公司地址
  String? leftContent; //居住地址
  String? leftUnit; //工作单位
  // String? name;//联系人
  // String? mobile;//手机号
  TextEditingController? contentController;
  TextEditingController? unitController;

  @override
  String toString() {
    return 'ControlBean{title: $title, childData: $childData}';
  }

  ControlBean(
    this.title,
    this.childData,
    this.type, {this.editType,
    this.leftContent,
    this.leftUnit,
    this.contentController,
    this.unitController,
  });
}

class ChildData {
  String? name;
  bool isSelect = false;

  @override
  String toString() {
    return 'ChildData{name: $name, isSelect: $isSelect}';
  }

  ChildData(this.name, this.isSelect);
}
